package com.cube.dp.base.enable;

import com.cube.dp.base.error.GlobalExceptionHandler;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author cube.li
 * @date 2021/12/23 17:12
 * <p>
 * 是否启动全局异常处理器 {@link GlobalExceptionHandler}
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(GlobalExceptionHandler.class)
public @interface EnableGlobalExceptionHandler {
}
